package gameStructure;

import GUI.messageBox;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class gameStarter{
    public static void main(String args[]) throws IOException{
        System.out.println("To programa tha sinehisi se console mode (y/n):");
        InputStreamReader reader = new InputStreamReader(System.in);
        BufferedReader in = new BufferedReader(reader);

        boolean til=true;
        do{
            String ch = in.readLine();
            if ( ch.charAt(0)=='y') {
                til=false;
                System.out.println("kalite i class pou ine ipeuthini gia tis litourgies tis console\n");
                //break;
            } // Epistrefi true an to ch ine "y".
            else if ( ch.charAt(0)=='n') {
                til=false;
                messageBox sk = new messageBox();
                
                //break;
            }
            //n=ch.equalsIgnoreCase("n");
        }while( til );
//        if (y) System.out.println("kalite i class pou ine ipeuthini gia tis litourgies tis console");
//        if (n) {  messageBox sk = new messageBox();  }
    }
}

